<template>
  <div class="component-a">
    <h2>{{ msg }}</h2>
  </div>
</template>
<script>
// 1.从vuex中按需导入mapGetterss函数
import { mapGetters } from "vuex";
export default {
  name: "componentA",
  data() {
    return {
      msg: "这里是A组件",
    };
  },
  computed: {},
};
</script>